#include <fstream>
#include <iostream>
using namespace std;
void write(int n = 233)
{
    
    std::ofstream ofs("w.bin", ios::binary);
    ofs << "999 " << n;
}
void read()
{
    int n, m;
    std::ifstream ifs("w.txt", ios::binary);
    ifs >> n >> m;
    cout << "n is " << n << endl;
    cout << "m is " << m << endl;
}
int main()
{
    write();
    read();
    return 0;
}
